package top.healthylife.gateway.platform.baohu.api.config;


import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import top.healthylife.gateway.core.config.BaseConfig;
import top.healthylife.gateway.dto.annotation.SystemInfo;
import top.healthylife.gateway.dto.annotation.SystemInfoField;
import top.healthylife.gateway.dto.cons.DataPeriod;

import java.io.Serializable;

/**
 * @author cl
 * @version 1.0
 * @date 2020/4/10 17:48
 */
@SystemInfo(systemName = "宝付",periodValidity = DataPeriod.DEFAULT, shortName = "baofu")
@Data
@Configuration
@Accessors(chain = true)
@ConfigurationProperties(prefix = "system")
public class SystemConfig extends BaseConfig implements Serializable {
    private static final long serialVersionUID = -4735148160159528848L;

    /**
     * 成员id
     */
    @SystemInfoField(value = "成员id")
    String memberId;

    /**
     * 终端id
     */
    @SystemInfoField(value = "终端id")
    String terminalId;

    /**
     * 密码
     */
    @SystemInfoField(value = "密码")
    String pripwd;

    /**
     * 访问地址
     */
    @SystemInfoField(value = "访问地址")
    String url;

    /**
     * 私钥
     */
    @SystemInfoField(value = "私钥")
    String privateKey;
}
